<%--
  Created by IntelliJ IDEA.
  User: pp
  Date: 2020/10/12
  Time: 19:01
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>main.jsp</title>



    <%--导入easyui核心的css--%>
    <link rel="stylesheet" href="easyui/themes/default/easyui.css">
    <%--导入easyui图标及css--%>
    <link rel="stylesheet" href="easyui/themes/icon.css">
    <%--导入基本默认css样式--%>
    <link rel="stylesheet" href="easyui/themes/demo.css">
    <%--导入jq依赖的js文件--%>
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <%--导入easyui核心js--%>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>

    <script type="text/javascript" src="js/sessionOut.js"></script>

    <script type="text/javascript">
        $(function () {
            $('#tt').tree({
                onClick: function(node){

                    if (node.url==""||node.url==null){
                        return;
                    }

                    var tabs = $('#tab').tabs('exists',node.text);

                    if (tabs){
                        $('#tab').tabs('select',node.text);
                    }else{
                        $('#tab').tabs('add',{
                            title:node.text,
                            content:'<iframe src="'+node.url+'" width="100%" height="100%"></iframe>',
                            closable:true,
                        });
                    }

                }
            });
        })


    </script>
</head>
<body class="easyui-layout">

    <div data-options="region:'north',title:'North Title',split:false" style="height:100px;
    background-image: url('imgs/$Q]VA_]ZVOJJ_3_43`}XAO6.png')
    ">

        <div>
            <span style="font-size: 35px">Ting域主持人后台系统</span>
        </div>
        <div style="margin-left: 1386px">
            <span>欢迎,${sessionScope.admin.aname}|
            <a href="admin/admintc">退出</a></span>
        </div>

    </div>

    <div data-options="region:'west',title:'West',split:true" style="width:350px;">
        <div class="easyui-accordion" data-options="fit:true">
            <div title="菜单">
                <ul id="tt" class="easyui-tree"
                    url="menu/selectMenuController">
                </ul>
            </div>
            <div title="网站二">
                <h3>giao</h3>
            </div>
            <div title="日历">
                <div id="cc" class="easyui-calendar" style="width:180px;height:180px;"></div>
            </div>
        </div>
    </div>
    <div data-options="region:'center'" style="background:#eee;">

        <div id="tab" class="easyui-tabs" data-options="fit:true">
            <div title="首页" style="background-image: url('imgs/timg (1).jpg')" background-position: center; background-repeat: no-repeat">

            </div>
        </div>
    </div>


</body>
</html>
